class_name BlackboardTimerStateComponent
extends StateComponent

##
var _data_name: String


func _init(init_name: String, init_data_name: String) -> void:
	super(init_name)
	_data_name = init_data_name


func _on_setup() -> void:
	parent.blackboard[_data_name] = 0.0


func _on_enter() -> void:
	pass


func _on_update(delta: float) -> void:
	parent.blackboard[_data_name] -= delta


func _on_exit() -> void:
	pass
